/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.vip.jwt.common.utils.menu;

import java.io.Serializable;
import java.util.List;

/**
 * 导航菜单
 *
 * @author limk
 * @version 1.0
 * @date 2018年4月10日 下午3:27:52
 */
public class Menu implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -4843542359632925814L;

    /**
     * id
     */
    private String id;

    /**
     * 菜单名
     */
    private String name;

    /**
     * 链接
     */
    private String url;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 图标
     */
    private String icon;

    /**
     * 父级id(顶级父节点必须为空)
     */
    private String parentId;

    /**
     * 子菜单
     */
    private List<Menu> children;

    public Menu() {
        super();
    }

    public Menu(String id, String name, String url, Integer sort, String icon, String parentId) {
        super();
        this.id = id;
        this.name = name;
        this.url = url;
        this.sort = sort;
        this.icon = icon;
        this.parentId = parentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

}
